<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:"laowang",
            age:19,
            sex:"男"
        }

        // let obj2 = obj;

        // let obj2 = {
        //     name:"laowang",
        //     age:19,
        //     sex:"男"
        // }

        // console.log(Object.keys(obj)); //['name', 'age', 'sex']
        // console.log(Object.values(obj)); //['laowang', 19, '男']

        // console.log(obj === obj2); //false

        // console.log(Object.is(obj,obj2)); //false

        // console.log(NaN === NaN); //false

        // 可以判断NaN
        // console.log(Object.is(NaN,NaN)); //true

        // let num = NaN;

        // 判断是否是NaN

        // 参数：数字本身
        // console.log(Number.isNaN(num));



        // 对象合并
        // let obj2 = {
        //     like:['篮球',"唱跳",'rap']
        // }

        // let obj3 = Object.assign(obj,obj2);

        // console.log(obj3);

        


    </script>
</body>
</html>